<template>
  <iframe id="bdIframe" width="100%" frameborder="0" :src="url"></iframe>
</template>

<script type="text/javascript">
import defaultSettings from '@/config/defaultSettings'
export default {
  data() {
    return {
      url: defaultSettings.urlForSwagger,
    }
  },
  mounted() {
    const oIframe = document.getElementById('bdIframe')
    const deviceHeight = document.documentElement.clientHeight
    oIframe.style.height = Number(deviceHeight) - 120 + 'px'
  },
}
</script>
<style scoped>
::-webkit-scrollbar {
  width: 0 !important;
}
::-webkit-scrollbar {
  width: 0 !important;
  height: 0;
}
</style>
